package com.cui.project.model.enums;


import lombok.Getter;

/**
 * 预测查询类型
 */
@Getter
public enum ForecastQueryTypeEnum {

    HISTORICAL("historical","历史数据"),
    FORECAST("forecast" ,"预测数据"),
    ALL("all","全部" );
    private final String name;
    private final String description;

    ForecastQueryTypeEnum(String name,String description) {
        this.name = name;
        this.description = description;

    }


    public static ForecastQueryTypeEnum get(String name){
        for (ForecastQueryTypeEnum value : values()) {
            if(value.name.equals(name)){
                return value;
            }
        }
        return null;
    }



}
